home *** CD-ROM | disk | FTP | other *** search
/ The Utilities Experience / The Utilities Experience - Volume 1.iso / software / misc / o-z / x-windows / mesa-amiwin / makefile < prev    next >
Encoding:
Makefile  |  1995-11-30  |  7.5 KB  |  234 lines

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.5
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.26 1995/11/30 17:16:32 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.26  1995/11/30  17:16:32  brianp
  26. # updated version to 1.2.5
  27. #
  28. # Revision 1.25  1995/11/22  18:55:30  brianp
  29. # added sunos5-x11r6-gcc-sl target from Oleg Krivosheev
  30. #
  31. # Revision 1.24  1995/11/16  20:52:10  brianp
  32. # added a number of new Sun targets per Frederic Devernay
  33. #
  34. # Revision 1.23  1995/11/13  21:54:01  brianp
  35. # added unicos target
  36. #
  37. # Revision 1.22  1995/10/31  19:33:40  brianp
  38. # added aix-sl and hpux-gcc targets
  39. # updated version to 1.2.4
  40. #
  41. # Revision 1.21  1995/09/29  16:04:48  brianp
  42. # renamed HOME to MESA_HOME and NAME to MESA_NAME
  43. #
  44. # Revision 1.20  1995/09/22  19:57:24  brianp
  45. # added solaris-gcc config from Steve Stevenson
  46. #
  47. # Revision 1.19  1995/09/15  13:05:42  brianp
  48. # added dgux, hpux-sl and ultrix-gcc configs
  49. # updated version to 1.2.3
  50. #
  51. # Revision 1.18  1995/08/01  21:03:27  brianp
  52. # added machten target, updates for 1.2.2
  53. #
  54. # Revision 1.17  1995/06/21  16:25:23  brianp
  55. # added irix5-dso, linux-elf and unixware targets
  56. # Release 1.2.1
  57. #
  58. # Revision 1.16  1995/05/22  16:53:59  brianp
  59. # Release 1.2
  60. #
  61. # Revision 1.15  1995/05/16  14:12:23  brianp
  62. # added amix target
  63. # added contrib tree to tar file
  64. #
  65. # Revision 1.14  1995/04/20  17:35:52  brianp
  66. # made SCO a separate target
  67. #
  68. # Revision 1.13  1995/04/20  13:32:34  brianp
  69. # added SCO to Linux config
  70. #
  71. # Revision 1.12  1995/04/17  14:50:24  brianp
  72. # 1.1.4 beta release
  73. #
  74. # Revision 1.11  1995/03/31  17:05:29  brianp
  75. # 1.1.3 beta release
  76. #
  77. # Revision 1.10  1995/03/14  14:34:02  brianp
  78. # 1.1.2 beta release
  79. #
  80. # Revision 1.9  1995/03/09  14:51:39  brianp
  81. # added osf1 target per Joseph Canedo
  82. #
  83. # Revision 1.8  1995/03/08  19:50:30  brianp
  84. # added depend files to TAR_FILES
  85. #
  86. # Revision 1.7  1995/03/07  14:38:33  brianp
  87. # changed NAME to Mesa-1.1.1beta
  88. #
  89. # Revision 1.6  1995/03/07  14:31:31  brianp
  90. # new hpux CFLAGS per Jan Springer's suggestion
  91. #
  92. # Revision 1.5  1995/03/04  20:00:57  brianp
  93. # changed tar NAME from Mesa1.1beta to Mesa-1.1beta
  94. #
  95. # Revision 1.4  1995/03/04  19:47:13  brianp
  96. # 1.1 beta revision
  97. #
  98. # Revision 1.3  1995/03/01  21:11:53  brianp
  99. # added GLUT to tar target
  100. #
  101. # Revision 1.2  1995/02/24  16:20:26  brianp
  102. # added netbsd target
  103. #
  104. # Revision 1.1  1995/02/24  16:19:25  brianp
  105. # Initial revision
  106. #
  107.  
  108.  
  109. # To add a new configuration for your system add it to the list below
  110. # then update the Make-config file.
  111.  
  112.  
  113.  
  114. default:
  115.     @echo "Type one of the following:"
  116.     @echo "  make aix                  for IBM RS/6000 with AIX"
  117.     @echo "  make aix-sl               for IBM RS/6000, make shared libs"
  118.     @echo "  make amix                 for Amiga 3000 UX  SVR4 v2.1 systems"
  119.     @echo "  make dgux                 for Data General"
  120.     @echo "  make freebsd              for FreeBSD systems with GCC"
  121.     @echo "  make gcc                  for a generic system with GCC"
  122.     @echo "  make hpux                 for HP systems with HPUX"
  123.     @echo "  make hpux-gcc             for HP systems with HPUX using GCC"
  124.     @echo "  make hpux-sl              for HP systems with HPUX, make shared libs"
  125.     @echo "  make irix4                for SGI systems with IRIX 4.x"
  126.     @echo "  make irix5                for SGI systems with IRIX 5.x"
  127.     @echo "  make irix5-dso            for SGI systems with IRIX 5.x, make DSOs"
  128.     @echo "  make irix6                for SGI systems with IRIX 6.x"
  129.     @echo "  make linux                for Linux systems with GCC"
  130.     @echo "  make linux-elf            for Linux systems, make ELF shared libs"
  131.     @echo "  make mswindows            for Microsoft Windows"
  132.     @echo "  make machten              for Macs running MachTen"
  133.     @echo "  make netbsd               for NetBSD 1.0 systems with GCC"
  134.     @echo "  make osf1                 for DEC Alpha systems with OSF/1"
  135.     @echo "  make sco                  for SCO Unix systems with ODT"
  136.     @echo "  make solaris-gcc          for Solaris 2 systems with GCC"
  137.     @echo "  make sunos4               for Suns with SunOS 4.x"
  138.     @echo "  make sunos4-sl            for Suns with SunOS 4.x, make shared libs"
  139.     @echo "  make sunos4-gcc           for Suns with SunOS 4.x and GCC"
  140.     @echo "  make sunos4-gcc-sl        for Suns with SunOS 4.x, GCC, make shared libs"
  141.     @echo "  make sunos5               for Suns with SunOS 5.x"
  142.     @echo "  make sunos5-sl            for Suns with SunOS 5.x, make shared libs"
  143.     @echo "  make sunos5-gcc           for Suns with SunOS 5.x and GCC"
  144.     @echo "  make sunos5-gcc-sl        for Suns with SunOS 5.x, GCC, make shared libs"
  145.     @echo "  make sunos5-x11r6-gcc-sl  for Suns with X11R6, GCC, make shared libs"
  146.     @echo "  make ultrix-gcc           for DEC systems with Ultrix and GCC"
  147.     @echo "  make unicos               for Cray C90 (and other?) systems"
  148.     @echo "  make unixware             for PCs running UnixWare"
  149.     @echo "  make vistra               for Stardent Vistra systems"
  150.     @echo "  make clean"
  151.  
  152.  
  153.  
  154. aix aix-sl amix debug dgux freebsd gcc hpux hpux-gcc hpux-sl irix4 irix5 irix5-dso irix6 linux linux-elf machten netbsd osf1 sco solaris-gcc sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl sunos5 sunos5-sl sunos5-gcc sunos5-gcc-sl sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware vistra:
  155.     -mkdir lib
  156.     touch src/depend
  157.     touch src-glu/depend
  158.     cd src ; $(MAKE) $@
  159.     cd src-glu ; $(MAKE) $@
  160.     cd src-tk ; $(MAKE) $@
  161.     cd src-aux ; $(MAKE) $@
  162.     cd demos ; $(MAKE) $@
  163.     cd samples ; $(MAKE) $@
  164.     cd book ; $(MAKE) $@
  165.  
  166. mswindows:
  167.     @echo "See windows/README.WIN for installation"
  168.  
  169.  
  170.  
  171. # Remove .o files, emacs backup files, etc.
  172. clean:
  173.     -rm include/*~
  174.     -rm include/GL/*~
  175.     -rm lib/*.a lib/*.so*
  176.     -rm src/*.o src/*~
  177.     -rm src-aux/*.o
  178.     -rm src-glu/*.o src-glu/*~
  179.     -rm src-tk/*.o
  180.     -rm book/*.o book/*~
  181.     -rm demos/*.o demos/*~
  182.     -rm samples/*.o samples/*~
  183.  
  184.  
  185. # Remove everthing that can be remade
  186. realclean: clean
  187.     cd book ; $(MAKE) realclean
  188.     cd demos ; $(MAKE) realclean
  189.     cd samples ; $(MAKE) realclean
  190.     -rm lib/*.a lib/*.so*
  191.  
  192.  
  193.  
  194. MESA_HOME = Mesa
  195. MESA_NAME = Mesa-1.2.5
  196.  
  197. TAR_FILES =    \
  198.     $(MESA_HOME)/README        \
  199.     $(MESA_HOME)/IAFA-PACKAGE    \
  200.     $(MESA_HOME)/LICENSE        \
  201.     $(MESA_HOME)/Makefile        \
  202.     $(MESA_HOME)/Make-config    \
  203.     $(MESA_HOME)/mklib.*        \
  204.     $(MESA_HOME)/include/*.h    \
  205.     $(MESA_HOME)/include/GL/*.h    \
  206.     $(MESA_HOME)/src*/NOTES        \
  207.     $(MESA_HOME)/src*/README*    \
  208.     $(MESA_HOME)/src*/Makefile    \
  209.     $(MESA_HOME)/src*/depend    \
  210.     $(MESA_HOME)/src*/*.[ch]    \
  211.     $(MESA_HOME)/demos/Makefile    \
  212.     $(MESA_HOME)/demos/*.[cf]    \
  213.     $(MESA_HOME)/demos/isosurf.dat    \
  214.     $(MESA_HOME)/book/Makefile    \
  215.     $(MESA_HOME)/book/NOTES        \
  216.     $(MESA_HOME)/book/README    \
  217.     $(MESA_HOME)/book/*.[ch]    \
  218.     $(MESA_HOME)/samples/Makefile    \
  219.     $(MESA_HOME)/samples/NOTES    \
  220.     $(MESA_HOME)/samples/README    \
  221.     $(MESA_HOME)/samples/*.rgb    \
  222.     $(MESA_HOME)/samples/*.c    \
  223.     $(MESA_HOME)/GLUT/README-MESA    \
  224.     $(MESA_HOME)/widgets        \
  225.     $(MESA_HOME)/windows
  226.  
  227. tar:
  228.     cd .. ; \
  229.     tar -cvf $(MESA_NAME).tar $(TAR_FILES) ; \
  230.     gzip $(MESA_NAME).tar ; \
  231.     mv $(MESA_NAME).tar.gz $(MESA_HOME)
  232.  
  233.  
  234.